/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ins.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.ins.dao.InsFieldDao;
import com.thinkgem.jeesite.modules.ins.entity.InsField;

/**
 * 检验报告书-字段Service
 * @author fanqinglong
 * @version 2017-11-20
 */
@Service
@Transactional(readOnly = true)
public class InsFieldService extends CrudService<InsFieldDao, InsField> {

	public InsField get(String id) {
		return super.get(id);
	}
	
	public List<InsField> findList(InsField insField) {
		return super.findList(insField);
	}
	
	public List<InsField> findDateList(InsField insField){
		return dao.findDateList(insField);
	}
	
	public List<InsField> findNotNumberList(InsField insField){
		return dao.findNotNumberList(insField);
	}
	
	@Transactional(isolation = Isolation.DEFAULT,propagation = Propagation.REQUIRED,readOnly = false, rollbackFor = Exception.class)
	public void save(InsField insField) {
		super.save(insField);
	}
	
	@Transactional(isolation = Isolation.DEFAULT,propagation = Propagation.REQUIRED,readOnly = false, rollbackFor = Exception.class)
	public void delete(InsField insField) {
		super.delete(insField);
	}
	
	public InsField getByName(InsField insField){
		return dao.getByName(insField);
	}
}